<?php
/**
 * ============================================================================
 * @copyright China International Consulting. 中国国际咨询
 * @version:  v1.0
 * @website   http://www.chinacons.com
 * ---------------------------------------------
 * $Date: 2007.12.17
*/

	if( $_POST)
	{
	  $cates = implode(",", (array)$_POST['del_id']);
	  if( empty($cates)) exit(0);

	  $muster = get_news_Sub($muster,$cates);   //所有子类,以,开头
	  $muster = substr($muster,1,strlen($muster));
	  if (! empty($muster))
		$muster .= "," . $cates;
	  else 
		$muster = $cates;
		
	  $query = "DELETE FROM $TBL_CATE WHERE cate_id IN ($muster)";
	  $query1 = "DELETE FROM $TBL_NEWS WHERE cate_id IN ($muster)";
	  mysql_query($query) or die(mysql_error());
	  mysql_query($query1) or die(mysql_error());
	  MyNotice("删除成功",2,"news_cate.php.$param");
	  exit(0);
	}
?>